package cn.gok.dao;

import cn.gok.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @ClassName StudentDao
 * @Description TODO
 * @Author HP
 * @Date 9:48 2022/7/15
 * @Version 1.0
 **/
public interface StudentDao {
    public Student selectStudentById(Integer id);
    public int insertStudent(Student student);
    public int updateStudent(Student student);
    public int deleteStudent(Integer id);
    public Student selectStudentByCondition(Integer id,String name);
    public List<Student> findByIds(int[] arr);

    public Student findStudentByIdAndName(@Param("a") Integer id, @Param("b")String name);
    public int updateStudent2(Student student);
    public int updataAge(Map map);
}
